class inary:
    class source:
        name = "gcc"
        homepage = "http://gcc.gnu.org"
        class packager:
            name = "Süleyman POYRAZ"
            email = "zaryob.dev@gmail.com"
        license = ['GPLv3+', 'LGPLv3+']
        isa = ['app:console', 'library']
        summary = "The GNU Compiler Collection, includes C, C++, Objective-C and Fortran compilers"
        description = "The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, as well as libraries for these languages"
        archive = [
            ("9db7917f4ce337026335430814de0a5e991ec6c1","https://ftp.gnu.org/gnu/gcc/gcc-11.1.0/gcc-11.1.0.tar.xz"),
        ]
        builddependencies = ['binutils', 'bison', 'gettext', 'ncurses', 'zlib', 'gnuconfig', 'patch', 'sed', 'texinfo', 'gmp-devel', 'mpfr-devel', 'libmpc-devel', 'ppl', 'zlib-devel', 'isl-devel', 'elfutils']
        patches = ["sulin/64.patch", "sulin/gcc_47_based-record_gcc_options.patch"]
        packages = ['pkg_libquadmath', 'pkg_libgcc', 'pkg_libgomp', 'pkg_libgfortran', 'pkg_libgccgo', 'pkg_libobjc', 'pkg_gcc_l10n', 'pkg_gcc']
    class pkg_libquadmath:
        name = "libquadmath"
        runtimedependencies = []
        files = [
            ("library","/usr/lib/libquadmath.*"),
            ("library","/usr/lib/libquadmath.a"),
            ("library","/usr/lib32/libquadmath.a"),
            ("library","/usr/lib/libquadmath.spec*"),
            ("library","/usr/lib32/libquadmath.*"),
            ("library","/usr/lib32/libquadmath.spec*"),
            ("info","/usr/share/info/libquadmath.info"),
        ]
    class pkg_libgcc:
        name = "libgcc"
        runtimedependencies = []
        files = [
            ("config","/etc"),
            ("library","/usr/lib/libiberty.a"),
            ("library","/usr/lib/libstdc++.*"),
            ("library","/usr/lib/libgcc_s.*"),
            ("library","/usr/lib32/libstdc++.*"),
            ("library","/usr/lib32/libgcc_s.*"),
            ("library","/usr/lib/libsupc++.*"),
            ("library","/usr/lib/libsupc++.a"),
            ("library","/usr/lib/libstdc++fs.*"),
            ("library","/usr/lib/libstdc++fs.a"),
            ("library","/usr/lib/libstdc++.a"),
            ("library","/usr/lib32/libsupc++.*"),
            ("library","/usr/lib32/libsupc++.a"),
            ("library","/usr/lib32/libstdc++fs.a"),
            ("library","/usr/lib32/libstdc++fs.*"),
            ("library","/usr/lib32/libstdc++.a"),
            ("library","/usr/share/gcc-*"),
            ("library","/usr/share/gdb"),
        ]
    class pkg_libgomp:
        name = "libgomp"
        runtimedependencies = []
        files = [
            ("library","/usr/lib/libgomp.*"),
            ("library","/usr/lib/libgomp.a"),
            ("library","/usr/lib/libgomp.spec*"),
            ("library","/usr/lib32/libgomp.*"),
            ("library","/usr/lib32/libgomp.a"),
            ("library","/usr/lib32/libgomp.spec*"),
            ("info","/usr/share/info/libgomp.info"),
        ]
    class pkg_libgfortran:
        name = "libgfortran"
        runtimedependencies = ["libquadmath"]
        files = [
            ("info","/usr/share/info/gfortran.info"),
            ("library","/usr/lib/libgfortran.*"),
            ("library","/usr/lib/libgfortran.spec"),
            ("library","/usr/lib32/libgfortran.spec"),
            ("library","/usr/lib/libgfortran.a"),
            ("library","/usr/lib32/libgfortran.*"),
            ("library","/usr/lib32/libgfortran.a"),
        ]
    class pkg_libgccgo:
        name = "libgccgo"
        runtimedependencies = ['libgcc', 'libgomp']
        files = [
            ("info","/usr/share/info/gccgo.info"),
            ("library","/usr/lib/libgo.*"),
            ("library","/usr/lib/libgo.a*"),
            ("library","/usr/lib/libgolibbegin.a"),
            ("library","/usr/lib/libgobegin.a"),
            ("library","/usr/lib/go/11.1.0/x86_64-pc-linux-gnu/"),
            ("library","/usr/lib32/libgo.*"),
            ("library","/usr/lib32/libgo.a*"),
            ("library","/usr/lib32/libgolibbegin.a"),
            ("library","/usr/lib32/libgobegin.a"),
            ("library","/usr/lib32/go/11.1.0/x86_64-pc-linux-gnu/"),
            ("library","/usr/bin/gccgo"),
            ("library","/usr/bin/go*"),
            ("library","/usr/bin/x86_64-pc-linux-gnu-gccgo"),
        ]
    class pkg_libobjc:
        name = "libobjc"
        runtimedependencies = []
        files = [
            ("library","/usr/lib/libobjc.*"),
            ("library","/usr/lib/libobjc.a"),
            ("library","/usr/lib32/libobjc.*"),
            ("library","/usr/lib32/libobjc.a"),
        ]
    class pkg_gcc_l10n:
        name = "gcc-l10n"
        runtimedependencies = ["gcc"]
        files = [
            ("localedata","/usr/share/locale"),
        ]
    class pkg_gcc:
        name = "gcc"
        runtimedependencies = ['gmp', 'isl', 'mpfr', 'zlib', 'libmpc']
        files = [
            ("executable","/lib"),
            ("executable","/usr/bin"),
            ("info","/usr/share/info/cpp.info"),
            ("info","/usr/share/info/gcc.info"),
            ("info","/usr/share/info/gccint.info"),
            ("info","/usr/share/info/cppinternals.info"),
            ("info","/usr/share/info/gccinstall.info"),
            ("info","/usr/share/info/libitm.info"),
            ("library","/usr/lib/gcc"),
            ("library","/usr/lib/liba*"),
            ("library","/usr/lib/libcc*"),
            ("library","/usr/lib/libitm*"),
            ("library","/usr/lib/liblsan*"),
            ("library","/usr/lib/libmpx*"),
            ("library","/usr/lib/libsanitizer.spec"),
            ("library","/usr/lib/libtsan*"),
            ("library","/usr/lib/libubsan*"),
            ("library","/usr/lib32/liba*"),
            ("library","/usr/lib32/libcc*"),
            ("library","/usr/lib32/libitm*"),
            ("library","/usr/lib32/liblsan*"),
            ("library","/usr/lib32/libmpx*"),
            ("library","/usr/lib32/libsanitizer.spec"),
            ("library","/usr/lib32/libtsan*"),
            ("library","/usr/lib32/libubsan*"),
            ("library","/usr/libexec"),
            ("header","/usr/include"),
            ("man","/usr/share/man"),
        ]
        additionalfiles = [
            ("gfilt","root","0755","/usr/bin/gfilt"),
            ("gSTLFilt.pl","root","0644","/usr/libexec/gSTLFilt.pl"),
        ]
    class history:
        update = [
            ["2020-06-14","11.1.0","Gcc 11.1 has been compiled.","Suleyman Poyraz","zaryob.dev@gmail.com"],
        ]
